import request from '@/utils/request'

const baseURL = 'http://localhost:39203/carbon/report'
// const baseURL = 'http://116.204.103.224:39203/data'

// 查询测试列表
export function genReport(data) {
  return request({
    url: '/gen',
    method: 'post',
    data: data,
    baseURL: baseURL
  })
}

export function pageReportList(data) {
  return request({
    url: '/pageList',
    method: 'get',
    params: {
      page: data.page,
      size: data.size
    },
    baseURL: baseURL
  })
}

export function detailReport(id) {
  return request({
    url: `/detail/${id}`,
    method: 'get',
    baseURL: baseURL
  })
}
